package top.continew.admin.model.req;

import jakarta.validation.constraints.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import org.hibernate.validator.constraints.Length;
import java.io.Serial;
import java.io.Serializable;
import java.time.*;

/**
 * 标签管理创建或修改参数
 *
 * @author stu
 * @since 2025/05/28 20:33
 */
@Data
@Schema(description = "标签管理创建或修改参数")
public class TagReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 标签名称
     */
    @Schema(description = "标签名称")
    @NotBlank(message = "标签名称不能为空")
    @Length(max = 50, message = "标签名称长度不能超过 {max} 个字符")
    private String name;
}